<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="orderSellDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='orderSellDetail.heading'/>"/>
     <meta name="menu" content="UserMenu"/>
    <link type="text/css" href="<c:url value='/scripts/jquery-ui/css/smoothness/jquery-ui-1.8.12.custom.css'/>" rel="stylesheet" />	
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-1.5.1.min.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-ui-1.8.12.custom.min.js'/>"></script>
	<script>
	$(function() {
		$( "#orderSellForm_orderSell_orderDate" ).datepicker();
	});
</script>
</head>
<s:form id="orderSellForm" action="saveOrderSell" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="orderSell.id"/>
    </li>
    <c:if test="${subSystem}">
		<s:checkbox key="orderSell.subSystem" id="orderSell.subSystem"  fieldValue="true"  theme="simple"/>
		 <label for="orderSell.subSystem" class="choice"><fmt:message key="orderSell.subSystem"/></label>
	</c:if>
    <s:textfield key="orderSell.client" required="true" cssClass="text medium"/>
    <s:textfield key="orderSell.idCard" required="false" cssClass="text medium"/>
    <s:select key="orderSell.productName" list="productNameGroup" listKey="description" listValue="description" cssClass="select"/>
	<s:select key="orderSell.market" list="marketGroup" listKey="description" listValue="description" cssClass="select"/>
  	<s:textfield key="orderSell.money" required="false" cssClass="text medium"/>
	<s:textfield key="orderSell.remark" required="false" cssClass="text medium"/>
	<s:textfield key="orderSell.orderDate" required="true" cssClass="text medium"/>
    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("orderSellForm"));
</script>
